package com.heavenbird.common.util;

import java.sql.Timestamp;
import java.text.SimpleDateFormat;

public class DateTimeUtil {
	public static Timestamp getDate(Timestamp ts) throws Exception{
		SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd");
		String strDT = df.format(ts);
		return new Timestamp(df.parse(strDT).getTime());
	}
}
